package org.stream.answerduel.service.Async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 功能描述：提供异步服务
 *
 * @Auther: 苏建誉
 * @Date: 2019/7/13 22:12
 */
@Service
public class AsyncServiceImpl {
    @Async
    public void asyncInvoke(AsyncService.AsyncExec consumer){
        consumer.exec();
    }
}
